package com.compton.UI
{
	import air.update.ApplicationUpdaterUI;

	public class UpdateApplication
	{
		public function UpdateApplication() 
		{
			updatefn();
		}
		
		//updates the application after 7 days. Allows users to update this application
		private function updatefn():void
		{
			var update:ApplicationUpdaterUI;
			update = new ApplicationUpdaterUI();
			update.delay = 7; //Number of days btw checks
			update.updateURL = "xml/update.xml";
			update.initialize();
		}
	}
}